/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcn.dal.interfaces;

import com.rcn.exception.RaccoonException;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author Nicolas
 */
public interface IBaseDAO {
    public <T> void save(T item) throws RaccoonException;

    public <T> void update(T item) throws RaccoonException;
    
    public <T> void saveOrUpdate(T item) throws RaccoonException;

    public <T> void saveOrUpdate(T item,Session s) throws RaccoonException;
    
    public Object getById(Class clazz, String id)throws RaccoonException;

    public List getAll(Class clazz)throws RaccoonException;

    public <T> void delete(T item)throws RaccoonException;
}
